package com.icourt.learn.optional;

import com.icourt.learn.entity.StuDo;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;


import javax.swing.text.html.Option;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;

@Slf4j
public class FlatOptional {


    @Test
    public void test(){


        StuDo bo =new StuDo();
        bo.setName( "张三" );
        bo.setAge( 12 );
        List<Optional<StuDo>> list = new ArrayList<>(  );

        list.add( Optional.ofNullable( bo ) );



       // Optional<List<StuDo>> x =list.parallelStream().flatMap(new)


    }
}
